<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="br.com.seuimovelnamao.Util"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title></title>
	<script src="/js/jquery-1.9.1.min.js"></script>
	<link rel="stylesheet" href="/css/style.css">
	<c:choose>
		<c:when test="${ empty semmapa }">
			<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=<%=Util.GOOGLE_MAPS_KEY %>&sensor=false"></script>
			<script type="text/javascript" src="/js/markerwithlabel.js"></script>
			<script type="text/javascript" src="/js/mapcontrol.js"></script>
			<script type="text/javascript">
		      var script = '<script type="text/javascript" src="http://google-maps-' +
		          'utility-library-v3.googlecode.com/svn/trunk/infobubble/src/infobubble';
		      if (document.location.search.indexOf('compiled') !== -1) {
		        script += '-compiled'; 
		      }
		      script += '.js"><' + '/script>';
		      document.write(script);
		    </script>
		    <script type="text/javascript">
		    	var localizacaoURL = "";
		    	var tipoPagina = "";
		    	var categoria = "";
		    	var intencao = "";
		    	<%
		    	if(request.getAttribute("localizacaoURL") != null){ %>
		    		localizacaoURL = "<%=request.getAttribute("localizacaoURL")%>";
		    	<%
		    	}
		    	if(request.getAttribute("tipoPagina") != null){ %>
		    		tipoPagina = "<%=request.getAttribute("tipoPagina")%>";
		    	<%
		    	}
		    	if(request.getAttribute("categoria") != null){ %>
		    	categoria = "<%=request.getAttribute("categoria")%>";
		    	<%
		    	}
		    	if(request.getAttribute("intencao") != null){ %>
		    	intencao = "<%=request.getAttribute("intencao")%>";
		    	<%
		    	}
		    	%>
		    </script>
		</c:when>
	</c:choose>
	<script type="text/javascript" src="/js/util.js"></script>
	<c:choose>
		<c:when test="${ not empty more }">
			${more}
		</c:when>
	</c:choose>
</head>
<body>
	<c:choose>
		<c:when test="${ empty semmapa }">
			<div id="map_canvas" style="width: 100%; height: 500px"></div>
		</c:when>
	</c:choose>
	<div class="container">
		<c:choose>
			<c:when test="${ empty semmapa }">
				<div id="mapmessage"><table border="0"><tr><td><img src="/images/carregando.gif" alt="Carregando" width="30" /></td><td>Buscando imóveis...</td></tr></table></div>
				<div class="header-mb">
			</c:when>
			<c:otherwise>
				<div class="header">
			</c:otherwise>
		</c:choose>
		
			<a href="/"><img alt="Maps Imóveis" src="/images/mapsimoveis.jpg" /></a>
			<nav>
			<div id="nav" class="menu-main-container">
				<ul id="menu-main" class="menu">
					<% if(session.getAttribute("usuario") == null){ %>
						<li id="menu-item-255"
							class="menu-item menu-item-type-custom menu-item-object-custom menu-item-255 drop"><a
							href="#">Login</a>
							<div class="sub-menu login-box">
								<form action="/efetuaLogin" method="post" class="formulario-arredondado">
									<table border="0" cellpadding="2">
										<tr>
											<td>Email:</td>
											<td><input type="text" name="email" autocomplete="off" />
										</tr>
										<tr>
											<td>Senha:</td>
											<td><input type="password" name="senha" />
										</tr>
									</table>
									<input type="submit" value="Entrar" class="right" />
								</form>
								<a href="#">Esqueci minha senha</a>
							</div>
						</li>
					<% }else{ %>
						<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-245">
							<a href="/memberArea">Minha conta</a>
						</li>
						<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-245">
							<a href="/logout">Sair</a>
						</li>
					<% } %>
				</ul>
			</div>
			</nav>
			<div style="float:right; padding: 25px 40px 0 0;">
				<a href="/anunciar"><img src="/images/anuncie.png" alt="Anunciar" /></a>
			</div>	
			<div style="clear: both"></div>
		</div>
	</div>